var t = new(require("../../../utils/http").HTTP);
Page({
    onLoad: function (a) {
        var e = this;
        e.setData({
            hire: a
        }),
        1 == a.total ? (wx.setNavigationBarTitle({
                title: "去化统计"
            }), 0 != a.yf ? "公司" != a.canshu ? t.request({
                url: "https://www.qlsyyun.com:3000/selling",
                data: {
                    arr: 1,
                    zt: a.canshu,
                    yuefen: a.yf
                }
            }).then((function (t) {
                    0 == t.data.length && wx.showToast({
                        title: "暂无该月数据",
                        icon: "none",
                        duration: 1e3
                    }),
                    e.setData({
                        item: t.data
                    })
                })) : t.request({
                url: "https://www.qlsyyun.com:3000/selling",
                data: {
                    arr: 2,
                    yuefen: a.yf
                }
            }).then((function (t) {
                    e.setData({
                        item: t.data
                    })
                })) : "公司" != a.canshu ? t.request({
                url: "https://www.qlsyyun.com:3000/selling/Year",
                data: {
                    zt: a.canshu,
                    arr: 1
                }
            }).then((function (t) {
                    0 == t.data.length && wx.showToast({
                        title: "该项目暂无数据",
                        icon: "none",
                        duration: 1e3
                    }),
                    e.setData({
                        item: t.data
                    })
                })) : t.request({
                url: "https://www.qlsyyun.com:3000/selling/Year",
                data: {
                    arr: 2
                }
            }).then((function (t) {
                    e.setData({
                        item: t.data
                    })
                }))) : (wx.setNavigationBarTitle({
                title: "退租统计"
            }), 0 != a.yf ? "公司" != a.canshu ? t.request({
                url: "https://www.qlsyyun.com:3000/expire",
                data: {
                    arr: 1,
                    zt: a.canshu,
                    yuefen: a.yf
                }
            }).then((function (t) {
                    0 == t.data.length && wx.showToast({
                        title: "暂无该月数据",
                        icon: "none",
                        duration: 1e3
                    }),
                    e.setData({
                        item: t.data
                    })
                })) : t.request({
                url: "https://www.qlsyyun.com:3000/expire",
                data: {
                    arr: 2,
                    yuefen: a.yf
                }
            }).then((function (t) {
                    e.setData({
                        item: t.data
                    })
                })) : "公司" != a.canshu ? t.request({
                url: "https://www.qlsyyun.com:3000/expire/Year",
                data: {
                    zt: a.canshu,
                    arr: 1
                }
            }).then((function (t) {
                    0 == t.data.length && wx.showToast({
                        title: "该项目暂无数据",
                        icon: "none",
                        duration: 1e3
                    }),
                    e.setData({
                        item: t.data
                    })
                })) : t.request({
                url: "https://www.qlsyyun.com:3000/expire/Year",
                data: {
                    arr: 2
                }
            }).then((function (t) {
                    e.setData({
                        item: t.data
                    })
                })))
    }
});
